package com.tencent.live.bean.upload;

public class TokenBean {
    /**
     * code : 200
     * msg : ok
     * data : {"credentials":{"sessionToken":"2c02dbe435d9b2d71af3029aae745fa63833370d30001","tmpSecretId":"AKIDBdvidjDKNr5g6qA34CfXA5YOQaEwhjUY","tmpSecretKey":"TkgNVUOb3XDXQzwbKVj50D7pLKmn6ywV"},"expiredTime":1589874098,"key":"4932195782558720","bucket":"vieewer-1301683607","region":"ap-shanghai"}
     */

    private String code;
    private String msg;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * credentials : {"sessionToken":"2c02dbe435d9b2d71af3029aae745fa63833370d30001","tmpSecretId":"AKIDBdvidjDKNr5g6qA34CfXA5YOQaEwhjUY","tmpSecretKey":"TkgNVUOb3XDXQzwbKVj50D7pLKmn6ywV"}
         * expiredTime : 1589874098
         * key : 4932195782558720
         * bucket : vieewer-1301683607
         * region : ap-shanghai
         */

        private CredentialsBean credentials;
        private int expiredTime;
        private String key;
        private String bucket;
        private String region;

        public CredentialsBean getCredentials() {
            return credentials;
        }

        public void setCredentials(CredentialsBean credentials) {
            this.credentials = credentials;
        }

        public int getExpiredTime() {
            return expiredTime;
        }

        public void setExpiredTime(int expiredTime) {
            this.expiredTime = expiredTime;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getBucket() {
            return bucket;
        }

        public void setBucket(String bucket) {
            this.bucket = bucket;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }

        public static class CredentialsBean {
            /**
             * sessionToken : 2c02dbe435d9b2d71af3029aae745fa63833370d30001
             * tmpSecretId : AKIDBdvidjDKNr5g6qA34CfXA5YOQaEwhjUY
             * tmpSecretKey : TkgNVUOb3XDXQzwbKVj50D7pLKmn6ywV
             */

            private String sessionToken;
            private String tmpSecretId;
            private String tmpSecretKey;

            public String getSessionToken() {
                return sessionToken;
            }

            public void setSessionToken(String sessionToken) {
                this.sessionToken = sessionToken;
            }

            public String getTmpSecretId() {
                return tmpSecretId;
            }

            public void setTmpSecretId(String tmpSecretId) {
                this.tmpSecretId = tmpSecretId;
            }

            public String getTmpSecretKey() {
                return tmpSecretKey;
            }

            public void setTmpSecretKey(String tmpSecretKey) {
                this.tmpSecretKey = tmpSecretKey;
            }
        }
    }
}
